#pragma once


// CScreenCover dialog

class CScreenCover : public CDialog
{
	DECLARE_DYNAMIC(CScreenCover)

public:
	CScreenCover(CWnd* pParent = NULL);   // standard constructor
	virtual ~CScreenCover();

// Dialog Data
	enum { IDD = IDD_DIALOG_SCREENCOVER };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);

private:
	CDC m_dcMem;
	CSize m_ScreenSize;
	CBitmap m_bmpScreen;
	CBitmap* m_oldBmp;
	CRect m_ScreenArea;
	CRect m_SelectArea;
	BOOL  m_bSelectStart;
	BOOL  m_bMoveStart;
	CPoint m_MoveStartPoint;
	CPoint m_MoveEndPoint;
	int	  m_nRectCount;
	HCURSOR m_PenCursor;
	HCURSOR m_CrossMoveCursor;
	CPoint m_CurCursorPosition;
public:
	void DrawInfo(void);
public:
	afx_msg void OnPaint();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
};
